package com.meituan.sdk.model.pms.reservation.updateOrderMemo;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 更新预订单备注
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/reservation/updateOrderMemo",
    businessId = 57,
    apiVersion = "10023",
    apiName = "update_order_memo",
    needAuth = true
)
public class UpdateOrderMemoRequest implements MeituanRequest<UpdateOrderMemoResponse> {
    /**
    * <p data-diff-id="ct-diff-id-e2b20b5a-c4dd-4648-8241-a9731f80ca16">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-9bf5833c-05f7-48a7-8d63-8340ec9e77c0">订单ID</p>
    */
    @NotNull(message = "orderId不能为空")
    @SerializedName("orderId")
    private Long orderId;
    /**
    * <p data-diff-id="ct-diff-id-7035a147-11a6-445c-a816-aaea6e7d0d80">备注</p>
    */
    @NotBlank(message = "memo不能为空")
    @SerializedName("memo")
    private String memo;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public Long getOrderId() {
        return orderId;
    }
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public String getMemo() {
        return memo;
    }
    public void setMemo(String memo) {
        this.memo = memo;
    }


    @Override
    public MeituanResponse<UpdateOrderMemoResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<UpdateOrderMemoResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "UpdateOrderMemoRequest{" + "hotelId=" + hotelId + "," + "orderId=" + orderId + "," + "memo=" + memo + "}";
    }
}
